package lexer;
import java.io.IOException;

import reader.FromFile;


public class Main {
   
   public static void main(String [] args) throws IOException {
      try {
    	  FromFile f = new FromFile();
    	  String input = f.readFile("test");
    	  System.out.println(input);
    	  //agora fooi
    	 new MiniJava(new java.io.StringReader(input)).Program();
         System.out.println("Parsing successfull");
      }
      catch (ParseException e) {
         System.out.println("Lexer Error : \n"+ e.toString());
      }
   }
}


